package com.fy56.platform.logistics.mapper;

import com.fy56.platform.logistics.common.mapper.IBaseMapper;
import com.fy56.platform.logistics.model.News;

import java.util.List;
import java.util.Map;

public interface NewsMapper extends IBaseMapper<News> {

    List<News> select(News record);

    /**
     *
     * @mbggenerated 2018-02-09
     */
    @Override
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-02-09
     */
    @Override
    int insert(News record);

    /**
     *
     * @mbggenerated 2018-02-09
     */
    @Override
    int insertSelective(News record);

    /**
     *
     * @mbggenerated 2018-02-09
     */
    @Override
    News selectByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-02-09
     */
    @Override
    int updateByPrimaryKeySelective(News record);

    /**
     *
     * @mbggenerated 2018-02-09
     */
    @Override
    int updateByPrimaryKey(News record);

    /**
     *
     * @mbggenerated 2018-05-14
     */
    List<Map<String,Object>> getHomeNewsList(News record);
}